import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../view/index'
import love from '../view/love/index.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Index,
    children:[
      {
        path:'love',
        component:love
      }
    ]
  },
]


const router = new VueRouter({
   routes,
})

export default router
